package com.xyz.study.design_mode.u_proxy.statics.mode;

public class StaticsPrintStringProxy implements StaticsPrintString {
    private StaticsPrintString staticsPrintString;

    public StaticsPrintStringProxy() {
        staticsPrintString = new StaticsPrintStringImpl();
    }

    @Override
    public String printStringAndReturn(String string) {
        System.out.println("代理类相关处理。。。");
        System.out.println("调用被代理类方法。。。");
        String result = staticsPrintString.printStringAndReturn(string);
        System.out.println("调用被代理类方法。。。");
        return result;
    }
}
